namespace _104 {

var maxDepth = function(root: TreeNode<number>): number {
    if (root === null) return 0;
    const left = maxDepth(root.left)
    const right = maxDepth(root.right)
    return Math.max(left, right) + 1;
};

}